libxenlight: Add the line number to the config file parsing error message
authorKeir Fraser <keir.fraser@citrix.com>
Sun, 17 Jan 2010 17:57:44 +0000 (17:57 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Sun, 17 Jan 2010 17:57:44 +0000 (17:57 +0000)
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
tools/libxl/xl.c

index ed3ca4e1ce0f72114b4ef4c8f32ce27d8fb488a8..52bd8b8d02e36e804048ec4b9675e06a984232cc 100644 (file)
@@ -407,7 +407,7 @@ static void parse_config_file(const char *filename,
         newfilename = compat_config_file(filename);
         config_init (&config);
         if (!config_read_file(&config, newfilename)) {
-            fprintf(stderr, "Failed to parse config file %s, try removing any embedded python code\n", config_error_text(&config));
+            fprintf(stderr, "Failed to parse config file %s on line %d, try removing any embedded python code\n", config_error_text(&config), config_error_line(&config));
             exit(1);
         }
         free(newfilename);